home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
LinkList
/
DLL
/
MkOs
Wrap
Text File
|
1995-09-04
|
3KB
|
121 lines
ObjectFiles = \
o.AddToHead \
o.AddToTail \
o.InList \
o.InsertA \
o.InsertB \
o.ListLength \
o.Unlink \
LibName = LinkList
# Template makefile to make all .o files
# for a DeskLib sublibrary. Compilation
# is for static linking inside a DLL.
# The macro $(ObjectFiles) should be set at the
# start of this file, to be a space-separated
# list of object files.
# This is done by 'Makatic'.
# The macro $(LibName) should also be set at the
# start of this file, to be the name of the
# DeskLib sublibrary.
#
# Compiler flags, These can be anything.
# All essential flags (eg CC -zM
# are included in the macro $(CC).
#
CCFlags = -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
ASMFlags = -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
CC = cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
ASM = ObjAsm $(ASMFlags)
# -------------------------------------------------------
# Everything below here should probably not be changed...
# -------------------------------------------------------
# Here's what we want to make...
#
All: $(ObjectFiles)
# Rule for compiling C source code for a Straylight dynamically-linked library.
VPATH = @.^
.SUFFIXES: .o .c .s
.c.o:
$(CC) -o $@ $<
.s.o:
$(ASM) $(ASMFlags) -from $< -to $@
# Dynamic dependencies:
o.AddToHead: ^.c.AddToHead
o.AddToHead: C:h.stdlib
o.AddToHead: C:h.stdio
o.AddToHead: DeskLib:h.LinkList
o.AddToHead: DeskLib:h.Core
o.AddToHead: C:h.stddef
o.AddToHead: C:DLLLib.h.dll
o.AddToHead: C:h.kernel
o.AddToTail: ^.c.AddToTail
o.AddToTail: C:h.stdlib
o.AddToTail: C:h.stdio
o.AddToTail: DeskLib:h.LinkList
o.AddToTail: DeskLib:h.Core
o.AddToTail: C:h.stddef
o.AddToTail: C:DLLLib.h.dll
o.AddToTail: C:h.kernel
o.InList: ^.c.InList
o.InList: C:h.stdlib
o.InList: C:h.stdio
o.InList: DeskLib:h.LinkList
o.InList: DeskLib:h.Core
o.InList: C:h.stddef
o.InList: C:DLLLib.h.dll
o.InList: C:h.kernel
o.InsertA: ^.c.InsertA
o.InsertA: C:h.stdlib
o.InsertA: C:h.stdio
o.InsertA: DeskLib:h.LinkList
o.InsertA: DeskLib:h.Core
o.InsertA: C:h.stddef
o.InsertA: C:DLLLib.h.dll
o.InsertA: C:h.kernel
o.InsertB: ^.c.InsertB
o.InsertB: C:h.stdlib
o.InsertB: C:h.stdio
o.InsertB: DeskLib:h.LinkList
o.InsertB: DeskLib:h.Core
o.InsertB: C:h.stddef
o.InsertB: C:DLLLib.h.dll
o.InsertB: C:h.kernel
o.ListLength: ^.c.ListLength
o.ListLength: C:h.stdlib
o.ListLength: C:h.stdio
o.ListLength: DeskLib:h.LinkList
o.ListLength: DeskLib:h.Core
o.ListLength: C:h.stddef
o.ListLength: C:DLLLib.h.dll
o.ListLength: C:h.kernel
o.Unlink: ^.c.Unlink
o.Unlink: C:h.stdlib
o.Unlink: C:h.stdio
o.Unlink: DeskLib:h.LinkList
o.Unlink: DeskLib:h.Core
o.Unlink: C:h.stddef
o.Unlink: C:DLLLib.h.dll
o.Unlink: C:h.kernel